/**
 * @program: LeetCode
 * @description: LeetCode : 2525. 根据规则将箱子分类
 * @author: WXY
 * @create: 2023-02-03 20:40
 * @Version 1.0
 **/
public class Num2525_categorizeBox {
    public static String categorizeBox(int length, int width, int height, int mass) {
        boolean volumeFlag = length >= 1_0000 || width >= 1_0000 || height >= 1_0000
                || (long)length * width * height  >= 10_0000_0000;
        boolean qualityFlag = mass >= 100;
        if (volumeFlag && qualityFlag) {
            return "Both";
        } else if (volumeFlag) {
            return "Bulky";
        } else if (qualityFlag) {
            return "Heavy";
        }
        return "Neither";
    }

    public static void main(String[] args) {
        int height = 2900;
        int width = 3968;
        int c = 3272;
        int d = 727;
        String s = categorizeBox(height, width, c, d);
        System.out.println(s);
    }
}
